#ifndef line_h
#define line_h

#include "shape.h"

class line : public shape
{
	friend ostream& operator<<(ostream &output,line l);

protected:

		point m_end;

public:

		line();
		line(const point &p_start, const point &p_end);
		point GetEnd(){return m_end;}
		void SetEnd(const point &p_end){m_end = p_end;}
		void Draw(HWND hwnd,int xt, int yt);
		void Draw(HWND hwnd);
		void Hide(HWND hwnd);
		int GetClassID(){return 5;}

		bool operator==(const line &right) const;
		const line& operator =(const line &right);
};



#endif